﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Configuration;
using Business;
using Domain;

namespace HotelBrisaYArenaAdministrador
{
    public partial class EliminarSeccion : System.Web.UI.Page
    {
        SeccionBusiness seccionBusiness = new SeccionBusiness(WebConfigurationManager.ConnectionStrings["ApplicationServices"].ToString());
        int id;
        Seccion seccion = new Seccion();

        protected void Page_Load(object sender, EventArgs e)
        {
           
        }

        protected void btnCancelar_Click(object sender, EventArgs e)
        {
            Response.Redirect("PaginaPrincipal.aspx");
        }

        protected void btnAceptar_Click(object sender, EventArgs e)
        { 
            id = Int32.Parse(Request.QueryString["valor"].ToString());
            seccionBusiness.EliminarSeccion(id);
            Response.Redirect("PaginaPrincipal.aspx");

        }
    }
}